<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>苏州数字文旅 - 首页</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#E63946',
                        secondary: '#457B9D',
                        accent: '#F1C40F',
                        dark: '#1D3557',
                        light: '#F1FAEE',
                    },
                    fontFamily: {
                        sans: ['PingFang SC', 'Helvetica Neue', 'Arial', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-shadow {
                box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            }
            .nav-item-active {
                color: #E63946;
                border-bottom: 3px solid #E63946;
            }
        }
    </style>
</head>
<body class="bg-gray-50 h-screen flex flex-col">
    <!-- 顶部导航 -->
    <header class="bg-white shadow-sm sticky top-0 z-10">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <h1 class="text-[clamp(1.2rem,5vw,1.5rem)] font-bold text-dark">苏州数字文旅</h1>
            <div class="flex items-center space-x-4">
                <button class="text-gray-600 hover:text-primary transition-colors">
                    <i class="fa fa-search text-xl"></i>
                </button>
                <button class="text-gray-600 hover:text-primary transition-colors">
                    <i class="fa fa-bell text-xl"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="flex-1 overflow-y-auto">
        <!-- 轮播图 -->
        <div class="relative h-48 md:h-64 overflow-hidden">
            <img src="https://picsum.photos/id/1036/800/400" alt="苏州园林美景" class="w-full h-full object-cover">
            <div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-end">
                <div class="p-4 text-white">
                    <h2 class="text-xl font-bold mb-1">探索苏州园林之美</h2>
                    <p class="text-sm opacity-90">发现江南水乡的独特魅力</p>
                </div>
            </div>
        </div>

        <!-- 功能入口 -->
        <div class="grid grid-cols-2 gap-4 p-4">
            <a href="planner.html" class="bg-white rounded-xl p-5 card-shadow flex flex-col items-center justify-center text-center hover:shadow-lg transition-shadow">
                <div class="w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mb-3">
                    <i class="fa fa-map-o text-primary text-2xl"></i>
                </div>
                <h3 class="font-semibold text-dark">旅游规划助手</h3>
                <p class="text-xs text-gray-500 mt-1">智能定制您的苏州之旅</p>
            </a>
            <a href="checkin.html" class="bg-white rounded-xl p-5 card-shadow flex flex-col items-center justify-center text-center hover:shadow-lg transition-shadow">
                <div class="w-16 h-16 bg-secondary/10 rounded-full flex items-center justify-center mb-3">
                    <i class="fa fa-camera text-secondary text-2xl"></i>
                </div>
                <h3 class="font-semibold text-dark">园林打卡手帐</h3>
                <p class="text-xs text-gray-500 mt-1">收集苏州五大园林印章</p>
            </a>
        </div>

        <!-- 推荐景点 -->
        <div class="p-4">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-lg font-bold text-dark">苏州必游景点</h2>
                <a href="#" class="text-primary text-sm">查看全部 <i class="fa fa-angle-right ml-1"></i></a>
            </div>
            <div class="grid grid-cols-2 gap-3">
                <div class="bg-white rounded-xl overflow-hidden card-shadow">
                    <img src="https://picsum.photos/id/1039/400/300" alt="拙政园" class="w-full h-32 object-cover">
                    <div class="p-3">
                        <h3 class="font-semibold text-dark">拙政园</h3>
                        <div class="flex items-center mt-1">
                            <i class="fa fa-star text-accent text-xs"></i>
                            <span class="text-xs text-gray-500 ml-1">4.8 (12.5k评价)</span>
                        </div>
                    </div>
                </div>
                <div class="bg-white rounded-xl overflow-hidden card-shadow">
                    <img src="https://picsum.photos/id/1040/400/300" alt="留园" class="w-full h-32 object-cover">
                    <div class="p-3">
                        <h3 class="font-semibold text-dark">留园</h3>
                        <div class="flex items-center mt-1">
                            <i class="fa fa-star text-accent text-xs"></i>
                            <span class="text-xs text-gray-500 ml-1">4.7 (8.3k评价)</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 旅游攻略 -->
        <div class="p-4 bg-white mt-4">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-lg font-bold text-dark">精选旅游攻略</h2>
                <a href="#" class="text-primary text-sm">更多攻略 <i class="fa fa-angle-right ml-1"></i></a>
            </div>
            <div class="space-y-3">
                <div class="flex gap-3 pb-3 border-b border-gray-100">
                    <img src="https://picsum.photos/id/1056/120/90" alt="苏州美食攻略" class="w-24 h-20 object-cover rounded-lg">
                    <div class="flex-1">
                        <h3 class="font-medium text-dark text-sm">苏州美食全攻略：从早茶到夜宵</h3>
                        <p class="text-xs text-gray-500 mt-1 line-clamp-2">探索苏州地道美食，品味江南独特风味，这份攻略不容错过...</p>
                    </div>
                </div>
                <div class="flex gap-3">
                    <img src="https://picsum.photos/id/1060/120/90" alt="园林摄影技巧" class="w-24 h-20 object-cover rounded-lg">
                    <div class="flex-1">
                        <h3 class="font-medium text-dark text-sm">园林摄影技巧：捕捉苏州园林之美</h3>
                        <p class="text-xs text-gray-500 mt-1 line-clamp-2">专业摄影师教你如何拍摄出如画般的苏州园林照片...</p>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- 底部导航 -->
    <footer class="bg-white border-t border-gray-200 py-2">
        <div class="flex justify-around">
            <a href="home.html" class="flex flex-col items-center py-1 nav-item-active">
                <i class="fa fa-home text-lg"></i>
                <span class="text-xs mt-1">首页</span>
            </a>
            <a href="planner.html" class="flex flex-col items-center py-1 text-gray-500 hover:text-primary transition-colors">
                <i class="fa fa-map-o text-lg"></i>
                <span class="text-xs mt-1">规划</span>
            </a>
            <a href="checkin.html" class="flex flex-col items-center py-1 text-gray-500 hover:text-primary transition-colors">
                <i class="fa fa-camera text-lg"></i>
                <span class="text-xs mt-1">打卡</span>
            </a>
            <a href="profile.html" class="flex flex-col items-center py-1 text-gray-500 hover:text-primary transition-colors">
                <i class="fa fa-user-o text-lg"></i>
                <span class="text-xs mt-1">我的</span>
            </a>
        </div>
    </footer>
</body>
</html>